package directoryapp

class GenderCode {

	String code;
	
    static constraints = {
    }
	
	String toString() {
		if (code.equals("M")) {
			return "Male"
		} else if (code.equals("F")) {
			return "Female";
		} else if (code.equals("U")) {
			return "Undefined";
		} else {
			code;
		}
	}
}
